package com.yanyeori.webtest.entity.clear;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yanyeori.framework.datasource.mybatisplus.annotation.MultiTableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * t_bank
 */
@Getter
@Setter
@TableName("t_bank")
@ApiModel(description = "银行实体")
public class BankEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @MultiTableId
    @ApiModelProperty("主键id")
    private Long id;

    /**
     * 银行代码
     */
    @MultiTableId
    @NotBlank(message = "银行代码不能为空")
    @Size(min = 2, max = 20, message = "银行代码长度需在2和20之间")
    @ApiModelProperty(value = "银行代码", required = true)
    private String bankId;

    /**
     * 银行名称
     */
    @NotBlank(message = "银行名称不能为空")
    @Size(max = 50, message = "银行名称长度需在0和50之间")
    @ApiModelProperty("银行名称")
    private String bankName;

    /**
     * BIC
     */
    @ApiModelProperty("银行BIC")
    private String bic;

    /**
     * 是否注销 Active:0,Disable:1
     */
    @NotNull(message = "状态不能为空")
    @ApiModelProperty("是否注销 Active:0,Disable:1")
    private String status;

    /**
     * 修改人
     */
    @ApiModelProperty("修改人")
    private String updateUser;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Long updateTime;
}